package com.rizzo.back.domain;

import javax.persistence.*;
import java.util.Date;

/**
 * TODO Insert JavaDoc!
 */
@Entity
@Table(name = "rizzo.rizzo_blog_user")
public class BlogUser {

    private Long id;

    private String firstname;

    private String lastname;

    private String username;

    private String password;

    private String email;

    private Date createDate;

    private boolean active;

    /**
     * Method getId returns the id of this BlogUser object.
     *
     * @return the id (type Long) of this BlogUser object.
     */
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    @Column(name = "id", nullable = false)
    public Long getId() {
        return id;
    }

    /**
     * Method setId sets the id of this BlogUser object
     *
     * @param id of type Long
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * Method getFirstname returns the firstname of this BlogUser object.
     *
     * @return the firstname (type String) of this BlogUser object.
     */
    @Column(name = "firstname", nullable = false)
    public String getFirstname() {
        return firstname;
    }

    /**
     * Method setFirstname sets the firstname of this BlogUser object
     *
     * @param firstname of type String
     */
    public void setFirstname(String firstname) {
        this.firstname = firstname;
    }

    /**
     * Method getLastname returns the lastname of this BlogUser object.
     *
     * @return the lastname (type String) of this BlogUser object.
     */
    @Column(name = "lastname", nullable = false)
    public String getLastname() {
        return lastname;
    }

    /**
     * Method setLastname sets the lastname of this BlogUser object
     *
     * @param lastname of type String
     */
    public void setLastname(String lastname) {
        this.lastname = lastname;
    }

    /**
     * Method getUsername returns the username of this BlogUser object.
     *
     * @return the username (type String) of this BlogUser object.
     */
    @Column(name = "username", nullable = false)
    public String getUsername() {
        return username;
    }

    /**
     * Method setUsername sets the username of this BlogUser object
     *
     * @param username of type String
     */
    public void setUsername(String username) {
        this.username = username;
    }

    /**
     * Method getPassword returns the password of this BlogUser object.
     *
     * @return the password (type String) of this BlogUser object.
     */
    @Column(name = "password", nullable = false)
    public String getPassword() {
        return password;
    }

    /**
     * Method setPassword sets the password of this BlogUser object
     *
     * @param password of type String
     */
    public void setPassword(String password) {
        this.password = password;
    }

    /**
     * Method getEmail returns the email of this BlogUser object.
     *
     * @return the email (type String) of this BlogUser object.
     */
    @Column(name = "email", nullable = false)
    public String getEmail() {
        return email;
    }

    /**
     * Method setEmail sets the email of this BlogUser object
     *
     * @param email of type String
     */
    public void setEmail(String email) {
        this.email = email;
    }

    /**
     * Method getCreateDate returns the createDate of this BlogUser object.
     *
     * @return the createDate (type Date) of this BlogUser object.
     */
    @Column(name = "create_date", nullable = false)
    public Date getCreateDate() {
        return createDate;
    }

    /**
     * Method setCreateDate sets the createDate of this BlogUser object
     *
     * @param createDate of type Date
     */
    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    /**
     * Method getActive returns the active of this BlogUser object.
     *
     * @return the active (type boolean) of this BlogUser object.
     */
    @Column(name = "active", nullable = false)
    public boolean getActive() {
        return active;
    }

    /**
     * Method setActive sets the active of this BlogUser object
     *
     * @param active of type boolean
     */
    public void setActive(boolean active) {
        this.active = active;
    }
}
